#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int m, n;
	m = 1;
	int Jc(int x);
	for (n = 2; n < 11; n++)
	{
	
			m += Jc(n);
	}
	printf("%d", m);
	return 0;
}
int Jc(int x)
{
	int i, c;
	i = 1;
		for (c = 2; c < x + 1; c++)
		{
			i *= c;

		}
	return i;
}